#ifndef UTILS_H_INCLUDED
#define UTILS_H_INCLUDED

#include <string>
#include "string.h"
#include <vector>
#include <iostream>
#include <windows.h>

using std::vector;
using std::wstring;
using std::string;
extern void EndianSwap(uint8_t *pData, int startIndex, int length);

extern vector<wstring> SplitStrW(wstring Text, wstring site);

extern wstring dirnameOf(const std::wstring& fname);

extern wstring fnameOf(const std::wstring& fname);

extern wstring suffixOf(const std::wstring& fname);

extern void char_to_wchar(const char* ch, std::wstring& w_str);

extern std::wstring String2WString(const std::string& s);

extern std::string WString2String(const std::wstring& ws);

#endif // UTILS_H_INCLUDED
